package com.bems.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bems.pojo.Template;

public class TemplateService
{
		public List<Template> getTemplates(Map<String, Object> map)
		{
			return (List<Template>) new Template().getlist(map);
		}
		
		public static void main(String[] args) {
			TemplateService service = new TemplateService();
			Map<String, Object> map= new HashMap<String, Object>();
			map.put("template_id", 7);
			List<Template> li =(List<Template>) new Template().getlist(map);
//			List<Template> li = service.getTemplates(map);
			System.out.println(li.size());
			for (Template template : li) {
				
			}
		}
}
